package org.millioncall.yueyoga.admin.service;

import java.util.List;
import java.util.Map;

import org.millioncall.yueyoga.admin.model.Reservation;
import org.millioncall.yueyoga.admin.model.User;

public interface ReservationService {
	// --更新
	public int update(Reservation reservation);

	// --添加
	public int saveReservation(Reservation reservation);

	public List<Reservation> findReservationByMap(Map<String, Object> maps);

	// --根据条件查询
	public List<Reservation> findReservationByCdts(Map<String, Object> map);

	boolean reservateSingleSeat(String ydId, String memberId);

	public boolean cancelReservation(String reservateId);

	public List<String> findTwoWeekDate();

	public boolean reservateSchedule(String scheId, String memberId);

	public int resvSchedule(String scheId, String memberId);

	public boolean cancelResvSchedule(String scheduleId, String memberId);

	public String attendSchedule(String resvId,Integer prId, User user);

	/**
	 * 取消出席
	 * @param resvId
	 * @return
	 */
	public boolean cancelAttendSchedule(String resvId,Integer prId);

	/**
	 * 取消预订
	 * @param map参数集合
	 * */
	public int cancelReserve(Map<String, Object> map);

	public Reservation findResvScheduleInfoByScheIdAndMemberId(String kcxh,
			String memberId);
}
